package service.impl;

import dao.IUserDao;
import dao.impl.UserDaoImpl;
import entity.User;
import service.IUserService;

public class UserServiceImpl implements IUserService{
	private IUserDao userDao = new UserDaoImpl();
	
	@Override
	public User login(String name, String password) {
		return userDao.login(name, password);
	}

	@Override
	public User register(String name, String password) {
		return userDao.register(name,password);
	}
}
